console.log(`构建环境：${process.env.NODE_ENV}；`);
module.exports = {
  publicPath: '/admin/',
  outputDir: `./dist/admin`,
  chainWebpack: (config) => {
    config.plugin('html').tap((args) => {
      args[0].title = 'Chihiro「千寻」-后台管理系统';
      return args;
    });
  },
  devServer: {
    proxy: {
      '/v1/app': {
        target: 'http://chihiro-node-server-qa.td-test2.bitautotech.com',
        changeOrigin: true,
      },
    },
  },
};
